<?php


namespace app\common\life;


use app\common\middleware\UnDuplicate;
use app\common\utils\UtilsLog;

class HttpEnd
{
    public function handle()
    {
        $this->releaseDuplicate();
        UtilsLog::record('-------------------------------------------------------------------------','END');
    }

    /**
     * 解开接口重复提交的锁
     */
    public function releaseDuplicate(){
        if(UnDuplicate::isNeedUnlockDuplicate()){
            UnDuplicate::unlock();
        }
    }
}